package com.kingtao.message;

import com.kingtao.entry.Node;
import com.kingtao.entry.NodeGroup;
import lombok.Data;

import java.util.List;

/**
 * @Author: kingtao
 * @Date: 2023-08-27-15:01
 * @Description:
 */
@Data
public class ServerInitRequest extends Message{
    int leaderId;
    int secondLeaderId;
    NodeGroup group;
    @Override
    public int getMessageType() {
        return 111;
    }


    public ServerInitRequest(int leaderId, int secondLeaderId, NodeGroup group) {
        this.leaderId = leaderId;
        this.secondLeaderId = secondLeaderId;
        this.group = group;
    }

    public ServerInitRequest(int leaderId, int secondLeaderId) {
        this.leaderId = leaderId;
        this.secondLeaderId = secondLeaderId;
    }
}
